<?php
	require_once SCCORE_PATH."/db.php";
	return array_merge($db_config,
	array(
                'APP_GROUP_LIST' => 'Home,Admin', //项目分组设定
                'DEFAULT_GROUP'  => 'Home', //默认分组
		'LOAD_EXT_FILE'		=>	"extend",
		'TMPL_ACTION_ERROR'	=>	"Public:message",
		'TMPL_ACTION_SUCCESS'=>	"Public:message",
		'LANG_SWITCH_ON'	=>	true,
		'DEFAULT_LANG'		=>	'en-us',
		'LANG_LIST'			=>	'en-us,zh-cn',
		'VAR_LANGUAGE'		=>	'locate',
		'SYSTEM_MAIL'=>array(
			'SMTP_SERVER'	=>'mail.bxcc.net',
			'SMTP_PORT'		=> 25,
			'SMTP_USERNAME'	=>'password@bxcc.net',
			'SMTP_PASSWORD'	=>'pd_admin',
		),
		'FRONTEND_VER'		=>  '0712',
		'SITE_KEY'			=>  'jhV5HAcKQFA',
		'URL_MODEL' => 2,
		'URL_ROUTER_ON'   => true,
		'URL_HTML_SUFFIX' => 'scw',
		'URL_ROUTE_RULES' => array(
			'index'								=> 'Index/index',
			'verifycode'						=> 'Index/verify',
			'signin'							=> 'Index/userlogin',
			'signout'							=> 'Index/logout',
			'join'								=> 'Index/userreg',
			'password'							=> 'Index/password',
			'terms'								=> 'Index/terms',
			'work/index'						=> 'Work/index',
			'work/fav/:action/:wid'				=> 'Work/fav',
			'work/view/:wid/message'			=> 'Work/message',
			'work/view/:wid/bids'				=> 'Work/bids',
			'work/view/:wid'					=> 'Work/view',
			'contractor/index'					=> 'Contractors/index',
			'contractor/view/:uid'				=> 'Contractors/view',
			'contractor/works/:uid'				=> 'Contractors/works',
			'contractor/cases/:uid'				=> 'Contractors/caseshow',
			'contractor/follow/:action/:uid'	=> 'Contractors/follow',
			'space/index'						=> 'User/index',
			'space/cer'							=> 'User/verify',
			'space/view'						=> 'User/project?type=work',
			'/^space\/view-(\d+)$/'				=> 'User/project?type=work&p=:1',
			'/^space\/view-(\w+)$/'				=> 'User/project?type=:1',
			'/^space\/view-(\w+)-(\d+)$/'		=> 'User/project?type=:1&p=:2',
			'space/bid'							=> 'User/bidding?type=work',
			'/^space\/bid-(\d+)$/'				=> 'User/bidding?type=work&p=:1',
			'/^space\/bid-(\w+)$/'				=> 'User/bidding?type=:1',
			'/^space\/bid-(\w+)-(\d+)$/'		=> 'User/bidding?type=:1&p=:2',
			'space/follow'						=> 'User/favorite',
			'/^space\/follow-(\w+)$/'			=> 'User/favorite?type=:1',
			'space/case'						=> 'User/usercase',
			'space/case-new'					=> 'User/casenew',
			'space/concerns'					=> 'User/concerns',
			'space/concerns-user'				=> 'User/concerns-user',
			'space/password'					=> 'User/security',
			'/^space\/case-(\w+)-(\d+)$/'		=> 'User/caseaction?action=:1&id=:2',
			'/^space\/([\w-]+)$/'				=> 'User/tpl?name=:1',
			'/^channel_(\d+)\/index$/'			=> 'Index/newslist?cid=:1',
			'/^channel_(\d+)\/list_(\d+)$/'		=> 'Index/newslist?cid=:1&page=:2',
			'/^(\w+)$/'							=> 'Index/newslist?cname=:1',
			'/^(\w+)\/index$/'					=> 'Index/newslist?cname=:1',
			'/^(\w+)\/list_(\d+)$/'				=> 'Index/newslist?cname=:1&page=:2',
			'/^(\w+)\/view\/(\d+)$/'			=> 'Index/news?id=:2',
		 ),
	));
?>